package cn.dj.user.mapper;

import cn.dj.user.domain.User;
import cn.dj.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口：用户
 * </p>
 *
 * @author dj
 * @since 2023-02-07
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据手机号找用户
     * @param phone
     * @return
     */
    User loadByPhone(String phone);

    /**
     * 根据邮箱找用户
     * @param email
     * @return
     */
    User loadByEmail(String email);

    /**
     * 根据登录信息id查找用户
     * @param id
     * @return
     */
    User loadByLogininfoId(Long id);
}
